﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="CompoundView.cs" company="">
//   
// </copyright>
// <summary>
//   The compound view.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Libium.Views
{
    using System.Collections.Generic;

    /// <summary>
    ///   The compound view.
    /// </summary>
    public class CompoundView : ICompoundView
    {
        #region Fields

        /// <summary>
        ///   The _views.
        /// </summary>
        private readonly List<object> _views = new List<object>();

        #endregion

        #region Public Properties

        /// <summary>
        ///   Gets the views.
        /// </summary>
        public IEnumerable<object> Views
        {
            get
            {
                return _views;
            }
        }

        #endregion

        #region Public Methods and Operators

        /// <summary>
        /// The add view.
        /// </summary>
        /// <param name="view">
        /// The view. 
        /// </param>
        public void AddView(object view)
        {
            _views.Add(view);
        }

        #endregion
    }
}